package com.wx.qiqiai.handle;

/**
 * @author zhugh
 */
public enum HandleEnum {
    /**
     * 文本消息
     */
    TEXT("text", "textHandle");

    private String messageType;

    private String handleName;

    HandleEnum(String messageType, String handleName) {
        this.messageType = messageType;
        this.handleName = handleName;
    }

    public static String getHandleName(String messageType) {
        for (HandleEnum handleEnum : HandleEnum.values()) {
            if (handleEnum.messageType.equals(messageType)) {
                return handleEnum.handleName;
            }
        }

        return "";
    }
}
